package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.FacadeDeviceInfo;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.FacadeDeviceOperateInfo;

import java.util.List;

/**
 * 设备信息service层
 * Created by liuyj on 2017/1/13.
 */
public interface SomDeviceInfoService {

    /**
     * 查询所有设备信息
     * @param userId
     * @return
     */
    List<FacadeDeviceInfo> findAllDeviceInfo(String userId);

    /**
     * 根据设备ID查询操作记录
     * @param deviceId
     * @return
     */
    List<FacadeDeviceOperateInfo> findOperationRecordByDeviceId(String deviceId);

    /**
     * 获取设备字段名含义
     * @return
     */
    JSONObject getDeviceMean();

    /**
     * 更新rfid
     * @param entityId
     * @return
     */
    int updateRfid(String entityId, String rfid);
}
